﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


[RequireComponent(typeof(Text))]
public class UIDisplayWin : MonoBehaviour
{

    private Text _text;
    
    
    // Start is called before the first frame update
    void Awake()
    {
        _text = GetComponent<Text>();
    }

    // Update is called once per frame
    void Update()
    {
        // _text.text = GameManager.Instance.teamScore[0] + " : " + GameManager.Instance.teamScore[1];
        _text.text = _text.text.Replace("[AGE]", GameManager.Instance.age.ToString());
    }
}
